<?php
$data=$_POST;
$username=$_POST['username'];
$key=$_POST['key'];
if($key != 'zhangdiabc2019')  exit('1');//key不正确

$user=user_read_by_username($username);
if(empty($user))  exit('2');//用户不存在


else exit(json_encode($user));




 ?>
